#####
#####  用来预定义我们spider需要爬取的字段
#####  明确爬取数据结构，方便数据入库
#####  如果给item实例赋值为不存在的字段会报错
#####  item不是一个字典实例，其只是实现了对应的getitem和setitem魔法方法
#####  可以利用强制类型装换dict(item)将其装换为一个字典，方便数据入库
#####
#####

import scrapy

    # Tencent爬虫对应的item
class TecentItem(scrapy.Item):
    Id = scrapy.Field()
    PostId = scrapy.Field()
    RecruitPostId = scrapy.Field()
    RecruitPostName = scrapy.Field()
    CountryName = scrapy.Field()
    LocationName = scrapy.Field()
    BGName = scrapy.Field()
    ProductName = scrapy.Field()
    CategoryName = scrapy.Field()
    Responsibility = scrapy.Field()
    LastUpdateTime = scrapy.Field()
    PostURL = scrapy.Field()
    SourceID = scrapy.Field()
    IsCollect = scrapy.Field()
    IsValid = scrapy.Field()
    
class Suning(scrapy.Item):
    classify = scrapy.Field()
    server = scrapy.Field()
    imgSrc = scrapy.Field()
    price = scrapy.Field()
    desc = scrapy.Field()
    commentCount = scrapy.Field()
    shopName = scrapy.Field()
    discount = scrapy.Field()
    src = scrapy.Field()

class Tianmao(scrapy.Item):
    author = scrapy.Field()
    title = scrapy.Field()
    publish = scrapy.Field()
    publishDate = scrapy.Field()
    imgDesc = scrapy.Field()
    newPrice = scrapy.Field()
    shopname = scrapy.Field()
    jypwCatenIds = scrapy.Field()
    brandName = scrapy.Field()
    seoBreadCrumbName = scrapy.Field()
    jubaoUrl = scrapy.Field()
    cpmDatasGroupCode = scrapy.Field()
    addCartNumLimit = scrapy.Field()

class Insurance(scrapy.Item):
    docid = scrapy.Field()
    docSubtitle = scrapy.Field()
    publishDate = scrapy.Field()
    docSummary = scrapy.Field()
    docFileUrl = scrapy.Field()
    generaltype = scrapy.Field()
    pdfFileUrl = scrapy.Field()
    itemName = scrapy.Field()
    solicitFlag = scrapy.Field()
    docTitle = scrapy.Field()
    datafrom = scrapy.Field()
    docUuid = scrapy.Field()
    builddate = scrapy.Field()
    isTitleLink = scrapy.Field()
    titleLink = scrapy.Field()
    itemId = scrapy.Field()
    itemUuid = scrapy.Field()
    
class Piaofang(scrapy.Item):
    order = scrapy.Field()
    name = scrapy.Field()
    date = scrapy.Field()
    piaofang = scrapy.Field()
    changci = scrapy.Field()
    number = scrapy.Field()
    feichang = scrapy.Field()
    shangzuolv = scrapy.Field()
    piaojia = scrapy.Field()

class Piaofang(scrapy.Item):
    title = scrapy.Field()
    allpiaofang = scrapy.Field()
    daoyan = scrapy.Field()
    zhuyan = scrapy.Field()
    timeshangying = scrapy.Field()
    bofangtime = scrapy.Field()
    shangyingcounty = scrapy.Field()
    leixing = scrapy.Field()
    language = scrapy.Field()
    jianjie = scrapy.Field()

